package com.demo.dao;

import com.demo.entity.Department;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DepartmentDao {

    int save(Department department);

    int delete(int id);

    int deleteAll();

    int modify(Department department);

    Department getOne(int id);

    List<Department> getListBySuperId(int super_id);

    List<Department> getAll();

    List<Department> selectListBySuperId(int super_id);

    Integer findTotals();

    List<Department> findByPage(@Param("pageNow") Integer pageNow, @Param("pageSize") Integer pageSize);

}
